centroid of a triangle and its properties